<%@ page language="java" import="java.util.*,com.service.*,com.entity.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Newsmanager.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <%
  ArrayList<NewsType> list=(ArrayList<NewsType>) request.getAttribute("al");
  %>
  
 
  
  
所有新闻类型  :	<a href='sb_jumpaddNewtype.action'>添加新闻类型</a>
   <table border=1 bordercolor="black" cellspacing="0" width="500px" align="center" >
 	 <tr ><th> 新闻类型 </th><th>添加操作</th><th>查看操作</th><th>删除操作</th></tr>
  
  <% 
  
 
 	 	for(NewsType u:list)
 	 	{
 	 	out.print("<tr>"+
 	 	"<td>"+u.getNt_name()+
 	 	"</td><td><a href='/newsN/addNew.jsp?lid="+u.getNt_id()+"'>添加新闻</a></td><td><a href='sb_FindNew.action?lid="+u.getNt_id()+"'>查看新闻</a></td><td><a href='sb_delNewtype.action?id="+u.getNt_id()+"' target='_parent'>删除类型</a></td></tr><br/>");
 	 	}
 	 	 
 	  %>
 	  </table>
  </body>
</html>
